import request from '@/utils/request'
import qs from 'qs'

/**
 * 获取验证码
 *
 * @param data
 */
export function getCodeApi(queryParams) {
    const data = {
        c: 'ss',
        o: JSON.stringify (queryParams)
    }
    return request({
        url: '/api/Armour/get?' + qs.stringify(data),
        method: 'get'
    })
}

/**
 * 登录
 *
 * @param data
 */
export function loginApi(queryParams) {
    const data = {
        c: 'sl',
        o: JSON.stringify (queryParams)
    }
    return request({
        url: '/api/Armour/get?' + qs.stringify(data),
        method: 'get'
    })
}
